﻿using INTEX.SCHEDULER;
using ReflectionStudio.Core.Events;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Globalization;
using System.Windows;
using WPFExcelReport.Helpers;
namespace WPFExcelReport
{
    /// <summary>
    /// Interaction logic for EditEventWindow.xaml
    /// </summary>
    public partial class TMKRFABP
    {
       
        public TMKRFABP()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VICC_MKRF();
            DataContext = MV; 
            zAV33Height = 400; 
            InitializeComponent();  
            TMV.OnMessage += TMV_OnMessage;
            IsEdit = false;
        }

        private void TMV_OnMessage(object sender, MessageEventArgs e)
        {
            TMV.INFO = e.Info.Details;
        }
        public override void OnEXAUFChg(string value)
        {
            if (!IsCanLoad)
                return;
            if (value == "")
                return;
            dwData = TBMain.NewRow();
            dwData["ABFMANDANT"] = app.Mandant;
            dwData["ABFAUFKRS"] = value.Substring(0,2);
            dwData["ABFAUFLFD"] = value.Substring(2, 6);
            dwData["ABFAUFPOS"] = value.Substring(8, 3);
            SResult = TMV.QTMKRF16(dwData);
            TMV.MergeData(SResult, true, true);
            base.OnEXAUFChg(value);
        } 
    }
     
}